#pragma once
#include <stdint.h>

extern uint8_t rx_buf;
extern uint16_t data[4];
extern uint8_t rx_flag;
extern int flag;
extern uint16_t jiguang_real_x;
extern uint16_t jiguang_real_y;
extern uint16_t background_x;
extern uint16_t background_y;

extern uint16_t task_state; //任务状态

extern uint16_t Shun_find; //顺时针查找标志
extern uint16_t Ni_find; //逆时针查找标志

extern uint8_t gyro_buf;	//陀螺仪缓存区

extern uint16_t find_speed; //查找速度

void AddJiGuangRealXY(int16_t addx, int16_t addy, int16_t addspeed);
